package com.han;

import cn.hutool.core.util.IdcardUtil;

public class IdcardTest {
    public static void main(String[] args) {
        //验证身份证是否合法
        String card ="152632199809240017";
        boolean validCard = IdcardUtil.isValidCard(card);
        System.out.println(validCard);
        //查询省份
        String provinceByIdCard = IdcardUtil.getProvinceByIdCard(card);
        System.out.println(provinceByIdCard);
    }
}
